blob: 9b5474f75905c9949fb66c2e4b8ee9697bd6a558 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
;;; -*- lexical-binding: t; -*-
;;; early-init.el
;;
;; Early Init file for MMOSMacs. This is loaded before the GUI and
;; package system are initialized. This should contain only what
;; absolutely must be in Early Init.
;; ---------------------------------------------------------------------
;;; UI Adjustments
;; ---------------
;; The primary goal of this Section is to prevent Emacs from flashing or
;; stuttering visually on startup.
;;
;; If these customizations were placed in `init.el', as is the norm,
;; Emacs would initialize the UI elements, then make whatever
;; customizations we wrote.
;;
;; By placing the customizations here, they are applied before the UI is
;; initialized, preventing any visual glitches altogether.
;; ---------------------------------------------------------------------
;; ---------------------------------
;; Disable superfluous UI elements
;; -------------------------------
;; These UI elements are useless in
;; a keyboard-centric environment.
;; ---------------------------------
;; Disable the menu bar
(push '(menu-bar-lines . 0) default-frame-alist)
;; Disable the tool-bar
(push '(tool-bar-lines . 0) default-frame-alist)
;; Disable scroll bars
(push '(vertical-scroll-bars . 0) default-frame-alist)
;; ---------------------------------
;; Maximize frame on startup
;; -------------------------
;; Resizing is one of the primary
;; sources of visual glitching.
;; ---------------------------------
(push '(fullscreen . maximized) initial-frame-alist)
(push '(ns-transparent-titlebar . t) default-frame-alist)
(setq frame-inhibit-implied-resize t
frame-resize-pixelwise t)
|